package com.szml.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName product_price_record
 */
@TableName(value ="product_price_record")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductPriceRecord implements Serializable {
    /**
     * 价格记录id
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productPriceId;

    /**
     * 外键）商品id
     */
    private Long productId;

    /**
     * 纯积分 积分+现金 纯现金
     */
    private String priceType;

    /**
     * 所需积分的数量
     */
    private Integer points;

    /**
     * 所需现金数量
     */
    private Integer price;


}